import Vue from 'vue'
import Router from 'vue-router'
import News from '@/components/News'
import Articles from '@/components/Articles'

Vue.use(Router)   // 如果在一个模块化工程中使用它，必须要通过 Vue.use() 明确地安装路由功能：

export default new Router({
	routes: [
		{
			path: '/',
			name: 'News',
			component: News
		}, {
			path: '/detail',
			name: 'Articles',
			component: Articles
		},
	]
})
